package com.sunny.myproject.storem.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sunny.myproject.system.entity.IdEntity;

@Entity
@Table(name="tb_getmateriel_sub")
public class GetMateriel_sub extends IdEntity{

	private Materiel materiel;
	private GetMateriel getMateriel;
	private double amount;
	private String remark;
	
	@ManyToOne(targetEntity=Materiel.class)
	public Materiel getMateriel() {
		return materiel;
	}
	public void setMateriel(Materiel materiel) {
		this.materiel = materiel;
	}
	@ManyToOne(targetEntity=GetMateriel.class)
	public GetMateriel getGetMateriel() {
		return getMateriel;
	}
	public void setGetMateriel(GetMateriel getMateriel) {
		this.getMateriel = getMateriel;
	}
	public double getAmount() {
		return amount;
	}
	public void setAmount(double amount) {
		this.amount = amount;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
}
